<?php  
class ControllerModuleArticle extends Controller {
	protected function index($setting) {
		
		$this->language->load('module/article');
		
		M('article/article');
		$this->data['categories'] = $this->model_article_article->getCategories();
		
		foreach ($this->data['categories'] as $k => $v) {
			$this->data['categories'][$k]['link'] = U('article/category', 'category_id=' . $v['category_id']);
		}
		
		$this->render('module/article.tpl');
  	}

}
?>